<%-- 
    Document   : UserContent
    Created on : Oct 18, 2011, 2:56:57 PM
    Author     : Admin
--%>

<%@page import="model.pojo.User"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>


<form id="frmUser" name="frmUser" method="post" action="UserController?Action=View">
    <table width="550" border="0" align="center">
        <tr>
            <td class="user" width="150" align="center" bgcolor="#999999"><strong>Họ Tên</strong></td>
            <td class="user"width="120" align="center" bgcolor="#999999"><strong>Lịch Sử Viếng Thăm</strong></td>
            <td class="user"width="84" align="center" bgcolor="#999999"><strong>Tình Trạng</strong></td>
            <td class="user"width="83" align="center" bgcolor="#999999"><strong>Chấp Nhận</strong></td>
            <td class="user" width="44" align="center" bgcolor="#999999"><strong>Hủy</strong></td>
        </tr>
        <%
            List<User> ds = (List<User>) request.getAttribute("user");
            for (int i = 0; i < ds.size(); i++) {
                User us = ds.get(i);


        %>
        <tr>
            <td align="center" bgcolor="#C0C0C0" ><%=us.getTenDangNhap()%></td>
            <td align="center" bgcolor="#C0C0C0"><%=us.getLichSuViengTham()%></td>
            <td align="center" bgcolor="#C0C0C0"><%=us.getDaKichHoat()%></td>
            <td align="center" bgcolor="#C0C0C0"><input type="submit" name="btnChapNhan" id="btnChapNhan" value="Chấp Nhận" /></td>
            <td align="center" bgcolor="#C0C0C0"><input type="submit" name="btnHuy" id="btnHuy" value="Hủy" /></td>
        </tr>
        <% }%>
    </table>
</form>